package com.ruoyi.threeViolation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.threeViolation.mapper.ViolationAssessmentMapper;
import com.ruoyi.threeViolation.domain.ViolationAssessment;
import com.ruoyi.threeViolation.service.IViolationAssessmentService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author lth
 * @date 2023-12-21
 */
@Service
public class ViolationAssessmentServiceImpl implements IViolationAssessmentService 
{
    @Autowired
    private ViolationAssessmentMapper violationAssessmentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ViolationAssessment selectViolationAssessmentById(String id)
    {
        return violationAssessmentMapper.selectViolationAssessmentById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param violationAssessment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ViolationAssessment> selectViolationAssessmentList(ViolationAssessment violationAssessment)
    {
        return violationAssessmentMapper.selectViolationAssessmentList(violationAssessment);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param violationAssessment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertViolationAssessment(ViolationAssessment violationAssessment)
    {
        return violationAssessmentMapper.insertViolationAssessment(violationAssessment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param violationAssessment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateViolationAssessment(ViolationAssessment violationAssessment)
    {
        return violationAssessmentMapper.updateViolationAssessment(violationAssessment);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteViolationAssessmentByIds(String[] ids)
    {
        return violationAssessmentMapper.deleteViolationAssessmentByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteViolationAssessmentById(String id)
    {
        return violationAssessmentMapper.deleteViolationAssessmentById(id);
    }
}
